package mylab.usm.oauth2.client;

import com.fujieid.jap.core.JapUser;
import lombok.experimental.UtilityClass;
import mylab.usm.api.model.account.User;

@UtilityClass
public class Util {
    public JapUser fromSysUser(User user) {
        JapUser foo = new JapUser();
        foo.setUserId(user.getId().toString());
        foo.setUsername(user.getUsername());
        foo.setPassword(user.getPassword());
        return foo;
    }
}
